﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Model;
using TakeoutMangesDAL;

namespace TakeoutMangesBLL
{
    public class OrdersBLL
    {
        public static int InsertOrders(Model.Orders OS,out int a)
        {
            return OrdersDAL.InsertOrders(OS,out a);
        }
        public static List<OrderInfo> orderInfos(int UserID)
        {
            return TakeoutMangesDAL.OrdersDAL.orderInfos(UserID);
        }
        public static bool UpadateOrder(int OrderID)
        {
            return OrdersDAL.UpadateOrder(OrderID)==1?true:false;
        }
        }
}
